<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9"/>
<title>NGUI: EventDelegate Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NGUI
   &#160;<span id="projectnumber">3.11.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_event_delegate.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_event_delegate-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">EventDelegate Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Delegate callback that Unity can serialize and set via Inspector.  
 <a href="class_event_delegate.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate_1_1_parameter.html">Parameter</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delegates can have parameters, and this class makes it possible to save references to properties that can then be passed as function arguments, such as transform.position or widget.color.  <a href="class_event_delegate_1_1_parameter.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a97849f366a37b3f51f4a83af4a251003"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97849f366a37b3f51f4a83af4a251003"></a>
delegate void&#160;</td><td class="memItemRight" valign="bottom"><b>Callback</b> ()</td></tr>
<tr class="separator:a97849f366a37b3f51f4a83af4a251003"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accb7d342ecb37a00899d40608afbb1db"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="accb7d342ecb37a00899d40608afbb1db"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>EventDelegate</b> (Callback call)</td></tr>
<tr class="separator:accb7d342ecb37a00899d40608afbb1db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a503fcd5df45a98647c08a57c0aaff5f9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a503fcd5df45a98647c08a57c0aaff5f9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>EventDelegate</b> (MonoBehaviour <a class="el" href="class_event_delegate.html#a371584d55ca926df85f215655678afaf">target</a>, string <a class="el" href="class_event_delegate.html#a68a67061fcd268560cee2befe90d9a8c">methodName</a>)</td></tr>
<tr class="separator:a503fcd5df45a98647c08a57c0aaff5f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4a85a41c9d351309ff41c8990c8eee1"><td class="memItemLeft" align="right" valign="top">override bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#ac4a85a41c9d351309ff41c8990c8eee1">Equals</a> (object obj)</td></tr>
<tr class="memdesc:ac4a85a41c9d351309ff41c8990c8eee1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equality operator.  <a href="#ac4a85a41c9d351309ff41c8990c8eee1">More...</a><br /></td></tr>
<tr class="separator:ac4a85a41c9d351309ff41c8990c8eee1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09e1bf951e6cda250c12bcdbbdf024ab"><td class="memItemLeft" align="right" valign="top">override int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a09e1bf951e6cda250c12bcdbbdf024ab">GetHashCode</a> ()</td></tr>
<tr class="memdesc:a09e1bf951e6cda250c12bcdbbdf024ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used in equality operators.  <a href="#a09e1bf951e6cda250c12bcdbbdf024ab">More...</a><br /></td></tr>
<tr class="separator:a09e1bf951e6cda250c12bcdbbdf024ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f9013901109cb1e71bc4bca148fae8d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a1f9013901109cb1e71bc4bca148fae8d">Set</a> (MonoBehaviour <a class="el" href="class_event_delegate.html#a371584d55ca926df85f215655678afaf">target</a>, string <a class="el" href="class_event_delegate.html#a68a67061fcd268560cee2befe90d9a8c">methodName</a>)</td></tr>
<tr class="memdesc:a1f9013901109cb1e71bc4bca148fae8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the delegate callback using the target and method names.  <a href="#a1f9013901109cb1e71bc4bca148fae8d">More...</a><br /></td></tr>
<tr class="separator:a1f9013901109cb1e71bc4bca148fae8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af280f70d8d9a59cc218581f344347fb5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#af280f70d8d9a59cc218581f344347fb5">Execute</a> ()</td></tr>
<tr class="memdesc:af280f70d8d9a59cc218581f344347fb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Execute the delegate, if possible. This will only be used when the application is playing in order to prevent unintentional state changes.  <a href="#af280f70d8d9a59cc218581f344347fb5">More...</a><br /></td></tr>
<tr class="separator:af280f70d8d9a59cc218581f344347fb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30a0b292fbed3cdd1e9d361d0df4b0f2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a30a0b292fbed3cdd1e9d361d0df4b0f2">Clear</a> ()</td></tr>
<tr class="memdesc:a30a0b292fbed3cdd1e9d361d0df4b0f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear the event delegate.  <a href="#a30a0b292fbed3cdd1e9d361d0df4b0f2">More...</a><br /></td></tr>
<tr class="separator:a30a0b292fbed3cdd1e9d361d0df4b0f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc96588f54b6a85ad0707fa4f18aea0f"><td class="memItemLeft" align="right" valign="top">override string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#abc96588f54b6a85ad0707fa4f18aea0f">ToString</a> ()</td></tr>
<tr class="memdesc:abc96588f54b6a85ad0707fa4f18aea0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the delegate to its string representation.  <a href="#abc96588f54b6a85ad0707fa4f18aea0f">More...</a><br /></td></tr>
<tr class="separator:abc96588f54b6a85ad0707fa4f18aea0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:adc94bfeb0c522f472cef966060039180"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#adc94bfeb0c522f472cef966060039180">Execute</a> (List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt; list)</td></tr>
<tr class="memdesc:adc94bfeb0c522f472cef966060039180"><td class="mdescLeft">&#160;</td><td class="mdescRight">Execute an entire list of delegates.  <a href="#adc94bfeb0c522f472cef966060039180">More...</a><br /></td></tr>
<tr class="separator:adc94bfeb0c522f472cef966060039180"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe842136588403cccc0f144f091a7a4f"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#abe842136588403cccc0f144f091a7a4f">IsValid</a> (List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt; list)</td></tr>
<tr class="memdesc:abe842136588403cccc0f144f091a7a4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function to check if the specified list of delegates can be executed.  <a href="#abe842136588403cccc0f144f091a7a4f">More...</a><br /></td></tr>
<tr class="separator:abe842136588403cccc0f144f091a7a4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50abc45d542db920f46dda04222ceab1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_event_delegate.html">EventDelegate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a50abc45d542db920f46dda04222ceab1">Set</a> (List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt; list, Callback callback)</td></tr>
<tr class="memdesc:a50abc45d542db920f46dda04222ceab1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign a new event delegate.  <a href="#a50abc45d542db920f46dda04222ceab1">More...</a><br /></td></tr>
<tr class="separator:a50abc45d542db920f46dda04222ceab1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac810788c14a60ef243c278c71823d027"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#ac810788c14a60ef243c278c71823d027">Set</a> (List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt; list, <a class="el" href="class_event_delegate.html">EventDelegate</a> del)</td></tr>
<tr class="memdesc:ac810788c14a60ef243c278c71823d027"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign a new event delegate.  <a href="#ac810788c14a60ef243c278c71823d027">More...</a><br /></td></tr>
<tr class="separator:ac810788c14a60ef243c278c71823d027"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f7ae88db98a0a0b9a40950a337c3afd"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_event_delegate.html">EventDelegate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a4f7ae88db98a0a0b9a40950a337c3afd">Add</a> (List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt; list, Callback callback)</td></tr>
<tr class="memdesc:a4f7ae88db98a0a0b9a40950a337c3afd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append a new event delegate to the list.  <a href="#a4f7ae88db98a0a0b9a40950a337c3afd">More...</a><br /></td></tr>
<tr class="separator:a4f7ae88db98a0a0b9a40950a337c3afd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62f6bda9c54a16b2502597aff376c47b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_event_delegate.html">EventDelegate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a62f6bda9c54a16b2502597aff376c47b">Add</a> (List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt; list, Callback callback, bool <a class="el" href="class_event_delegate.html#a16707298a9d1b04e2daad231d81b6ea8">oneShot</a>)</td></tr>
<tr class="memdesc:a62f6bda9c54a16b2502597aff376c47b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append a new event delegate to the list.  <a href="#a62f6bda9c54a16b2502597aff376c47b">More...</a><br /></td></tr>
<tr class="separator:a62f6bda9c54a16b2502597aff376c47b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a252ec68d7e1613f1ec8ad0e6043455d8"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a252ec68d7e1613f1ec8ad0e6043455d8">Add</a> (List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt; list, <a class="el" href="class_event_delegate.html">EventDelegate</a> ev)</td></tr>
<tr class="memdesc:a252ec68d7e1613f1ec8ad0e6043455d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append a new event delegate to the list.  <a href="#a252ec68d7e1613f1ec8ad0e6043455d8">More...</a><br /></td></tr>
<tr class="separator:a252ec68d7e1613f1ec8ad0e6043455d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1dfbf0855b206afa243dc0da6e14708"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#aa1dfbf0855b206afa243dc0da6e14708">Add</a> (List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt; list, <a class="el" href="class_event_delegate.html">EventDelegate</a> ev, bool <a class="el" href="class_event_delegate.html#a16707298a9d1b04e2daad231d81b6ea8">oneShot</a>)</td></tr>
<tr class="memdesc:aa1dfbf0855b206afa243dc0da6e14708"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append a new event delegate to the list.  <a href="#aa1dfbf0855b206afa243dc0da6e14708">More...</a><br /></td></tr>
<tr class="separator:aa1dfbf0855b206afa243dc0da6e14708"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a725b364cbc028a916c9fce11ec32b3c7"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a725b364cbc028a916c9fce11ec32b3c7">Remove</a> (List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt; list, Callback callback)</td></tr>
<tr class="memdesc:a725b364cbc028a916c9fce11ec32b3c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove an existing event delegate from the list.  <a href="#a725b364cbc028a916c9fce11ec32b3c7">More...</a><br /></td></tr>
<tr class="separator:a725b364cbc028a916c9fce11ec32b3c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9aab33bc36cb16b4788feddd484df8d"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#ab9aab33bc36cb16b4788feddd484df8d">Remove</a> (List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt; list, <a class="el" href="class_event_delegate.html">EventDelegate</a> ev)</td></tr>
<tr class="memdesc:ab9aab33bc36cb16b4788feddd484df8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove an existing event delegate from the list.  <a href="#ab9aab33bc36cb16b4788feddd484df8d">More...</a><br /></td></tr>
<tr class="separator:ab9aab33bc36cb16b4788feddd484df8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a16707298a9d1b04e2daad231d81b6ea8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a16707298a9d1b04e2daad231d81b6ea8">oneShot</a> = false</td></tr>
<tr class="memdesc:a16707298a9d1b04e2daad231d81b6ea8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the event delegate will be removed after execution.  <a href="#a16707298a9d1b04e2daad231d81b6ea8">More...</a><br /></td></tr>
<tr class="separator:a16707298a9d1b04e2daad231d81b6ea8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a371584d55ca926df85f215655678afaf"><td class="memItemLeft" align="right" valign="top">MonoBehaviour&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a371584d55ca926df85f215655678afaf">target</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a371584d55ca926df85f215655678afaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Event delegate's target object.  <a href="#a371584d55ca926df85f215655678afaf">More...</a><br /></td></tr>
<tr class="separator:a371584d55ca926df85f215655678afaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68a67061fcd268560cee2befe90d9a8c"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a68a67061fcd268560cee2befe90d9a8c">methodName</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a68a67061fcd268560cee2befe90d9a8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Event delegate's method name.  <a href="#a68a67061fcd268560cee2befe90d9a8c">More...</a><br /></td></tr>
<tr class="separator:a68a67061fcd268560cee2befe90d9a8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cf64be074f3a3f6ea365375caa7f96b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_event_delegate_1_1_parameter.html">Parameter</a>[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a4cf64be074f3a3f6ea365375caa7f96b">parameters</a><code> [get]</code></td></tr>
<tr class="memdesc:a4cf64be074f3a3f6ea365375caa7f96b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Optional parameters if the method requires them.  <a href="#a4cf64be074f3a3f6ea365375caa7f96b">More...</a><br /></td></tr>
<tr class="separator:a4cf64be074f3a3f6ea365375caa7f96b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c0a9d3bce5691b73625aabf1e93507f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a7c0a9d3bce5691b73625aabf1e93507f">isValid</a><code> [get]</code></td></tr>
<tr class="memdesc:a7c0a9d3bce5691b73625aabf1e93507f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether this delegate's values have been set.  <a href="#a7c0a9d3bce5691b73625aabf1e93507f">More...</a><br /></td></tr>
<tr class="separator:a7c0a9d3bce5691b73625aabf1e93507f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a741f90d4314c7cd483528ee60727a9bf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_event_delegate.html#a741f90d4314c7cd483528ee60727a9bf">isEnabled</a><code> [get]</code></td></tr>
<tr class="memdesc:a741f90d4314c7cd483528ee60727a9bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the target script is actually enabled.  <a href="#a741f90d4314c7cd483528ee60727a9bf">More...</a><br /></td></tr>
<tr class="separator:a741f90d4314c7cd483528ee60727a9bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Delegate callback that Unity can serialize and set via Inspector. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a4f7ae88db98a0a0b9a40950a337c3afd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_event_delegate.html">EventDelegate</a> EventDelegate.Add </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt;&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Callback&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Append a new event delegate to the list. </p>

</div>
</div>
<a class="anchor" id="a62f6bda9c54a16b2502597aff376c47b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_event_delegate.html">EventDelegate</a> EventDelegate.Add </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt;&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Callback&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>oneShot</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Append a new event delegate to the list. </p>

</div>
</div>
<a class="anchor" id="a252ec68d7e1613f1ec8ad0e6043455d8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EventDelegate.Add </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt;&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_event_delegate.html">EventDelegate</a>&#160;</td>
          <td class="paramname"><em>ev</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Append a new event delegate to the list. </p>

</div>
</div>
<a class="anchor" id="aa1dfbf0855b206afa243dc0da6e14708"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EventDelegate.Add </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt;&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_event_delegate.html">EventDelegate</a>&#160;</td>
          <td class="paramname"><em>ev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>oneShot</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Append a new event delegate to the list. </p>

</div>
</div>
<a class="anchor" id="a30a0b292fbed3cdd1e9d361d0df4b0f2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void EventDelegate.Clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clear the event delegate. </p>

</div>
</div>
<a class="anchor" id="ac4a85a41c9d351309ff41c8990c8eee1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">override bool EventDelegate.Equals </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equality operator. </p>

</div>
</div>
<a class="anchor" id="af280f70d8d9a59cc218581f344347fb5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool EventDelegate.Execute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Execute the delegate, if possible. This will only be used when the application is playing in order to prevent unintentional state changes. </p>

</div>
</div>
<a class="anchor" id="adc94bfeb0c522f472cef966060039180"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EventDelegate.Execute </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt;&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Execute an entire list of delegates. </p>

</div>
</div>
<a class="anchor" id="a09e1bf951e6cda250c12bcdbbdf024ab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">override int EventDelegate.GetHashCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Used in equality operators. </p>

</div>
</div>
<a class="anchor" id="abe842136588403cccc0f144f091a7a4f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool EventDelegate.IsValid </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt;&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convenience function to check if the specified list of delegates can be executed. </p>

</div>
</div>
<a class="anchor" id="a725b364cbc028a916c9fce11ec32b3c7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool EventDelegate.Remove </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt;&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Callback&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove an existing event delegate from the list. </p>

</div>
</div>
<a class="anchor" id="ab9aab33bc36cb16b4788feddd484df8d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool EventDelegate.Remove </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt;&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_event_delegate.html">EventDelegate</a>&#160;</td>
          <td class="paramname"><em>ev</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove an existing event delegate from the list. </p>

</div>
</div>
<a class="anchor" id="a1f9013901109cb1e71bc4bca148fae8d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void EventDelegate.Set </td>
          <td>(</td>
          <td class="paramtype">MonoBehaviour&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>methodName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the delegate callback using the target and method names. </p>

</div>
</div>
<a class="anchor" id="a50abc45d542db920f46dda04222ceab1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_event_delegate.html">EventDelegate</a> EventDelegate.Set </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt;&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Callback&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Assign a new event delegate. </p>

</div>
</div>
<a class="anchor" id="ac810788c14a60ef243c278c71823d027"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EventDelegate.Set </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt;&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_event_delegate.html">EventDelegate</a>&#160;</td>
          <td class="paramname"><em>del</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Assign a new event delegate. </p>

</div>
</div>
<a class="anchor" id="abc96588f54b6a85ad0707fa4f18aea0f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">override string EventDelegate.ToString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert the delegate to its string representation. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a16707298a9d1b04e2daad231d81b6ea8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool EventDelegate.oneShot = false</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether the event delegate will be removed after execution. </p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="a741f90d4314c7cd483528ee60727a9bf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool EventDelegate.isEnabled</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Whether the target script is actually enabled. </p>

</div>
</div>
<a class="anchor" id="a7c0a9d3bce5691b73625aabf1e93507f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool EventDelegate.isValid</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Whether this delegate's values have been set. </p>

</div>
</div>
<a class="anchor" id="a68a67061fcd268560cee2befe90d9a8c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string EventDelegate.methodName</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Event delegate's method name. </p>

</div>
</div>
<a class="anchor" id="a4cf64be074f3a3f6ea365375caa7f96b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_event_delegate_1_1_parameter.html">Parameter</a> [] EventDelegate.parameters</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Optional parameters if the method requires them. </p>

</div>
</div>
<a class="anchor" id="a371584d55ca926df85f215655678afaf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">MonoBehaviour EventDelegate.target</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Event delegate's target object. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/WorkDir/Unity3D_Work/taidou_arpg/Assets/NGUI/Scripts/Internal/EventDelegate.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_event_delegate.html">EventDelegate</a></li>
    <li class="footer">Generated on Sat Jan 4 2020 22:30:27 for NGUI by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9 </li>
  </ul>
</div>
</body>
</html>
